import com.qf.userfull.dict.Dictionary;
import com.qf.userfull.dict.DictionaryImpl;
import com.qf.userfull.dict.Word;

import java.util.UUID;

public class Main {
    public static void main(String[] args) {
//        System.out.println("Hello world!");
//        System.out.println(UUID.randomUUID().toString());
//        System.out.println(UUID.randomUUID().toString());
//        System.out.println(UUID.randomUUID().toString());

        Word[] words = new Word[100000];
        for (int i = 0; i < words.length; i++) {
            Word word = new Word(UUID.randomUUID().toString(),UUID.randomUUID().toString());
            words[i]= word;
        }
        System.out.println(words.length);

//        for (int i = 0; i < 3; i++) {
//            System.out.println(words[i].getEnglishWord());
//        }
        Dictionary dictionary = new DictionaryImpl();

        long start = System.currentTimeMillis(); // 起始时机的毫秒值
        for (int i = 0; i < 3; i++) {
            Word word = words[i];
            dictionary.addWord(word.getEnglishWord(),word.getChineseWord());
        }
        long end = System.currentTimeMillis();
        System.out.println(end-start);

    }
}